package org.jeecg.modules.kuner.curriculumvitaebase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.kuner.curriculumvitaebase.entity.KrCurriculumVitaeBase;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.kuner.curriculumvitaebase.vo.CurriculumVitaeDetailVO;
import org.jeecg.modules.kuner.curriculumvitaebase.vo.CurriculumVitaeVO;
import org.jeecg.modules.kuner.hirebase.vo.KrHireVO;
import org.jeecg.modules.putil.KrStatic;

import java.math.BigDecimal;

/**
 * @Description: 个人简历
 * @Author: jeecg-boot
 * @Date: 2025-02-18
 * @Version: V1.0
 */
public interface IKrCurriculumVitaeBaseService extends IService<KrCurriculumVitaeBase> {

    /**
     * 混合查询
     *
     * @param mixSearch  搜索条件
     * @param money      薪水上线
     * @param searchType 查询类型
     * @param type       简历分类
     * @param edu        学历下线
     * @param workCity   期望工作城市
     * @param pageNo     分页页码
     * @param pageSize   分页大小
     * @return 查询结果
     */
    IPage<CurriculumVitaeVO> mixSearch(String mixSearch, BigDecimal money, KrStatic.SearchType searchType, String type, Integer edu, String workCity, Integer pageNo, Integer pageSize);

    /**
     * 查询简历详情
     *
     * @param id 简历ID
     * @return 查询结果
     */
    CurriculumVitaeDetailVO detail(String id);

    /**
     * 收藏简历
     *
     * @param curriculumId 被收藏的简历ID
     */
    void doCollection(String curriculumId);

    /**
     * 取消收藏简历
     *
     * @param curriculumId 被取消的简历
     */
    void cancelCollection(String curriculumId);

    /**
     * 修改我的简历信息
     *
     * @param curriculumVitaeBase 被修改的简历信息
     */
    void modifyMyCurriculum(KrCurriculumVitaeBase curriculumVitaeBase);


}
